package com.bl.weilan.dao.model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Data
@Table(name = "company_opponent")
@ApiModel(value = "CompanyOpponentEntity", description = "竞争公司")
@DynamicInsert
@DynamicUpdate
public class CompanyOpponentEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "竞争甲方")
    @Column(name = "company_id")
    private String companyId;

    @ApiModelProperty(value = "竞争4级行业id")
    @Column(name = "trade_d_id")
    private String tradeDId;

    @ApiModelProperty(value = "竞争4级行业名称")
    @Column(name = "trade_d_name")
    private String tradeDName;

    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time")
    private Date updateTime;
}
